package org.example.generator;

import cn.hutool.core.io.FileUtil;

import java.io.File;

/**
 * 静态代码生成器
 * @author ricejson
 */
public class StaticGenerator {
    public static void main(String[] args) {
        String projectPath = System.getProperty("user.dir");
        String inputPath = projectPath + File.separator + "rice-generator-demo-projects" +
                File.separator + "acm-template";
        String outputPath = projectPath;
        doGenerate(inputPath, outputPath);
    }


    /**
     * 目录及文件拷贝
     * @param srcPath 原文件路径
     * @param destPath 目标路径
     */
    public static void doGenerate(String srcPath, String destPath) {
        FileUtil.copy(srcPath, destPath, false);
    }
}
